pkgname=riot
pkgver=1.20100412
pkgrel=1
pkgdesc="an Information Organisation Tool"
url="http://hackage.haskell.org/package/riot"
license=('GPL')
arch=('i686' 'x86_64')
depends=('gmp' 'ncurses')
makedepends=('ghc' 'haskell-cabal' 'haskell-containers' 'haskell-directory'
	     'haskell-haskell98' 'haskell-mtl' 'haskell-old-locale'
	     'haskell-process' 'haskell-unix' 'haskell-hscurses')
options=('strip' 'docs')
source=(http://anion3.googlecode.com/files/riot-$pkgver.tar.gz)
md5sums=('a748139e375c69e9be1845914cb5b2c9')

build() {
    cd ${srcdir}/riot
    runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname} || return 1
    runhaskell Setup build || return 1
    runhaskell Setup copy --destdir=${pkgdir} || return 1
}
